package com.example.zeon;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class MenuActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_menu);
        
	    Toast warning = Toast.makeText(MenuActivity.this, "Login success!", Toast.LENGTH_LONG);
	    warning.show();
	    
        Button dbButton = (Button)findViewById(R.id.buttonMenuDB);    
	    View.OnClickListener l = new View.OnClickListener() {
			public void onClick(View v) {
	    		Intent intent = new Intent();
	    		intent.setClass(MenuActivity.this, DBActivity.class);
	    		startActivity(intent);
	    	}
	    };
	    	dbButton.setOnClickListener(l);
	    
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_menu, menu);
        return true;
    }
}
